Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Fixes flaky runtimeFileEditing.test.ts where stream-end wasn't found due to API latency/rate limiting causing 15s timeout.

Changes

  • Add configureTestRetries helper to tests/ipc/helpers.ts that only enables retries in CI environment
  • Fix sendMessageAndWait to throw explicit error on timeout instead of silently returning incomplete events
  • Add retry to runtimeFileEditing.test.ts to handle transient API issues
  • DRY up 6 other test files to use the new helper

Generated with mux

@ammar-agent ammar-agent changed the title 🤖 fix: add retry helper and throw on stream timeout 🤖 ci: add retry helper and throw on stream timeout Dec 11, 2025
@ammar-agent ammar-agent force-pushed the ipc-testing-hwjw branch 2 times, most recently from 800a26b to 4b2a28c Compare December 11, 2025 17:56
- Add configureTestRetries helper to tests/ipc/helpers.ts that only
  enables retries in CI environment
- Fix sendMessageAndWait to throw explicit error on timeout instead
  of silently returning incomplete events
- Add retry to runtimeFileEditing.test.ts to handle transient API issues
- DRY up 6 other test files to use the new helper

Fixes flaky runtimeFileEditing test where stream-end wasn't found due
to API latency/rate limiting causing 15s timeout.

_Generated with mux_
@ammario ammario merged commit 7c74e23 into main Dec 11, 2025
20 checks passed
@ammario ammario deleted the ipc-testing-hwjw branch December 11, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants